const arr = [1,2,3,4,5]

// for(const i of arr){
//     console.log(i)
// }


function * numberGenerator(){
    yield 1;
    yield 2;
    yield 3;

}



const gen = numberGenerator()

// console.log(gen.next().value)
// console.log(gen.next().value)
// console.log(gen.next().value)
// console.log(gen.next().value)

